package com.nfc.lock.dto.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 配电室详情VO
 */
@Data
@Schema(description = "配电室详情")
public class RoomDetailVO {

    @Schema(description = "配电室ID")
    private Long roomId;

    @Schema(description = "配电室名称")
    private String roomName;

    @Schema(description = "区域ID")
    private Long regionId;

    @Schema(description = "区域名称")
    private String regionName;

    @Schema(description = "经度")
    private BigDecimal longitude;

    @Schema(description = "纬度")
    private BigDecimal latitude;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "配电室状态 0-正常 1-使用中 2-预警")
    private Integer status;

    @Schema(description = "锁具总数")
    private Integer lockCount;

    @Schema(description = "开启中的锁具数量")
    private Integer openLockCount;

    @Schema(description = "故障锁具数量")
    private Integer malfunctionLockCount;

    @Schema(description = "锁具列表")
    private List<LockListVO> locks;
}
